﻿<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="PageMaster.aspx.cs"
    Inherits="PageMaster" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 162px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainBody" runat="Server">
    <table class="style1">
        <tr>
            <td valign="bottom" class="leftheading" colspan="2" align="left">
                <img src="images/headingbullet.gif" width="14" height="14">
                PAGE MASTER
            </td>
        </tr>
        <tr>
            <td class="leftsectionunderline" colspan="2">
                <img src="images/spacer.gif" width="1" height="1">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style2">
                Role
            </td>
            <td class="tdstyle">
                <asp:DropDownList CssClass="ddl" ID="ddlrole" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlrole_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style2">
                Page
            </td>
            <td class="tdstyle">
                <asp:DropDownList CssClass="ddl" ID="ddlpage" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style2">
                <asp:Button class="CSSButton" ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
            </td>
            <td class="tdstyle">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
                <asp:GridView ID="grdPage" runat="server" CssClass="griddiv" CellPadding="4" AutoGenerateColumns="false"
                    ForeColor="Black" AllowPaging="True" OnRowCommand="grdPage_RowCommand">
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <Columns>
                        <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Delete" ItemStyle-Width="150px" >
                            <ItemTemplate>
                                <%-- <asp:LinkButton ID="lnkEdit" CommandName="Edt" CommandArgument='<%# Eval("ROLE_PAGE_ID") %>'
                                    runat="server" Text="Edit"></asp:LinkButton>--%>
                                <%--  <asp:LinkButton ID="lnkDelete" CommandName="Del" CommandArgument='<%# Eval("ROLE_PAGE_ID") %>'
                                    runat="server" Text="Delete"></asp:LinkButton>--%>
                                <asp:ImageButton ID="lnkDelete" ImageUrl="~\images\delete.jpg" Height="20px" CommandName="Del"
                                    CommandArgument='<%# Eval("ROLE_PAGE_ID") %>' runat="server" AlternateText="Delete">
                                </asp:ImageButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="PAGE_NAME" HeaderText="Pages Assigned" />
                    </Columns>
                    <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True"  />
                    <HeaderStyle CssClass="greedhead" Font-Bold="True" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
